﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.ProductionManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.ProductionManagement.ProdArchiveDataVMs
{
    public partial class ProdArchiveDataBatchVM : BaseBatchVM<ProductionArchiveData, ProdArchiveData_BatchEdit>
    {
        public ProdArchiveDataBatchVM()
        {
            ListVM = new ProdArchiveDataListVM();
            LinkedVM = new ProdArchiveData_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class ProdArchiveData_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._ProdArchiveData._ArchiveId")]
        public long? ArchiveIdId { get; set; }
        [Display(Name = "_Model._ProdArchiveData._Sn")]
        public string Sn { get; set; }
        [Display(Name = "_Model._ProdArchiveData._Wo")]
        public string Wo { get; set; }
        [Display(Name = "_Model._ProdArchiveData._ProductId")]
        public long? ProductId { get; set; }
        [Display(Name = "_Model._ProdArchiveData._ProductCode")]
        public string ProductCode { get; set; }
        [Display(Name = "_Model._ProdArchiveData._OpId")]
        public long? OpId { get; set; }
        [Display(Name = "_Model._ProdArchiveData._OpCode")]
        public string OpCode { get; set; }
        [Display(Name = "_Model._ProdArchiveData._DataTag")]
        public string DataTag { get; set; }
        [Display(Name = "_Model._ProdArchiveData._DataName")]
        public string DataName { get; set; }
        [Display(Name = "_Model._ProdArchiveData._UpLimit")]
        public decimal? UpLimit { get; set; }
        [Display(Name = "_Model._ProdArchiveData._DataValue")]
        public string DataValue { get; set; }
        [Display(Name = "_Model._ProdArchiveData._LowerLimit")]
        public decimal? LowerLimit { get; set; }
        [Display(Name = "_Model._ProdArchiveData._SetParameter")]
        public string SetParameter { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}